<?php foreach ($items as $one) { ?>
    <div class="preview_dos_item" id="dos_id_<?php echo $one['id'] ?>">
        <div class="dos_show_img_wrap">
            <?php $local_path = sfConfig::get('sf_web_dir') . '/uploads/doseyeh/' . $one['cover_image'] ?>
            <?php $public_path = get_resized_image(110, 136, $local_path) ?>
            <a href="<?php echo url_for('doseyeh/show?id='.$one['id']) ?>"><img src="<?php echo $public_path ?>"></a>                      
        </div>
        <div class="dos_rating" data-did="<?php echo $one['id'] ?>" data-rating="<?php echo $one['rating'] ?>"></div>
        <div class="clear"></div>
        <div class="dos_course"><?php echo ucwords($one['name']) ?></div>
        <div class="dos_doctor"><?php echo ucwords($one['inst_name']) ?></div>
        <br/>
        <br/>
        <?php if(isset($_COOKIE['rated_'.$one['id']])){ ?> 
            <script>
                $(document).ready(function(){  
                    $('#dos_id_'+'<?php echo $one['id'] ?> .dos_rating').raty('readOnly', true);
                });
            </script>
        <?php } ?>
    </div>
<?php } ?>
<?php if(!count($items)): ?>
<div class="no_related"><?php echo __("Sorry ..there is no Topics at this time") ?></div>
<?php endif; ?>